#include "stm32f10x.h"     
#include "delay.h"
#include "key.h"
#include "led.h"
#include "car.h"
#include "pwm.h"

int main()
{
	PWM_Init();
	Key_Init();
	while(1)
	{
		if(Key_GetKeyCode()==1)
		{
			car_Run(70,5000);
			Delay_ms(500);
			car_Left(70,5000);
			Delay_ms(500);
			car_Right(70,5000);
			Delay_ms(500);
			car_Back(70,5000);
			Delay_ms(500);
		}
	}

	
}





















